using System;
using System.ComponentModel;
using System.Collections.Generic;
using System.Diagnostics;
using System.Windows.Forms;
using System.Data;using THSERP.BusinessEntities;using THSERP.BaseProvider;
using System.Text;

namespace THSERP.Modules.DataExchange
{
    public partial class BRBranchsGridControl : THSGridControl
    {
        public override void InitGridControlDataSource()
        {
            DataExchangeEntities entity = (DataExchangeEntities)((BaseModuleERP)Screen.Module).CurrentModuleEntity;
            this.DataSource = entity.BRBranchsList;
        }

        protected override void AddColumnsToGridView(string strTableName, DevExpress.XtraGrid.Views.Grid.GridView gridView)
        {
            base.AddColumnsToGridView(strTableName, gridView);
            DevExpress.XtraGrid.Columns.GridColumn column = new DevExpress.XtraGrid.Columns.GridColumn();
            column.FieldName = "AASelected";
            column.Caption = "Check";
            column.OptionsColumn.AllowEdit = true;
            gridView.Columns.Add(column);

            column = new DevExpress.XtraGrid.Columns.GridColumn();
            column.FieldName = "BRBranchTransferMessage";
            column.Caption = "Status";
            column.OptionsColumn.AllowEdit = false;
            gridView.Columns.Add(column);
        }
    }
}
